<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>p12v-for</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.js"></script>
</head>
<body>
    <div id="app">
        <p v-for="(item,i) in list">值：{{item}}，索引：{{i}}</p>
        <p v-for="user in listobj">{{user.name}}</p>
        <p v-for="(value,key,index) in user">值：{{value}}--键":{{key}}--索引:{{index}}</p>
        <p v-for="count in 10">这是第{{count}}次循环</p>
    </div>
    <script>
    var vm=new Vue({
        el:"#app",
        data:{
            list:[1,2,3,4,5,6],
            listobj:[{id:"1",name:"zhangsan"},{id:"2",name:"lisi"},{id:"3",name:"wangwu"}],
            user:{
                name:"托尼。斯塔克",
                age:100,
                gender:"男"
            }
        },
        methods:{}
    })
    </script>
</body>
</html>